/*
 * @Author: Bennty
 * @Date: 2024-07-18 16:05:03
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2024-09-14 14:08:23
 * @Description: 请填写简介
 */
import request from '@/utils/request';

/** 新增线索 */
export const addClueApi = (data: any)=>{
    return request({
        url: '/system/customerClueInfo',
        method: 'post',
        data: data
    })
};

/** 查询客户线索信息列表 */
export const getClueApi = (data:any) =>{
    return request({
        url: '/system/customerClueInfo/list',
        method: 'post',
        data: data
    })
};

/** 修改线索信息 */
export const updateClueApi = (data:any) => {
    return request({
        url: '/system/customerClueInfo',
        method: 'put',
        data: data
    });
};

/** 获取客户线索信息详细信息 */
export const getClueInfoByIdApi = (id: any)=>{
    return request({
        url: `/system/customerClueInfo/${id}`,
        method: 'get'
    });
}

/** 根据编号更新线索客户状态 */
export const updateClueStatusApi = (data: any)=>{
    return request({
        url: '/system/customerClueInfo/updateClueStatus',
        method: 'put',
        params: data
    })
};

/** 删除客户线索信息 */
export const deleteClueByIdApi = (ids: any) =>{
    return request({
        url: `/system/customerClueInfo/${ids}`,
        method: 'delete'
    })
};